package com.anxinr.service;

import com.anxinr.pojo.base.QueryBase;
import com.anxinr.pojo.dto.CommodityDTO;
import com.anxinr.pojo.dto.ShopDTO;
import com.anxinr.pojo.entity.Commodity;
import com.anxinr.pojo.entity.Shop;
import com.anxinr.result.Result;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author anxinr
 */
public interface CommodityService extends IService<Commodity> {
    /**
     * 查询该门店的商品
     * @param commodity
     * @return
     */
    PageInfo<CommodityDTO> queryCommodity(QueryBase<CommodityDTO> commodity);

    /**
     * 新增门店商品
     * @param commodity
     */
    void addCommodity(CommodityDTO commodity);
}
